<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/21
 * Time: 17:46
 */

Route::group(['namespace' => 'Index', 'middleware' => 'web'], function () {
    Route::get('/',                             'IndexController@index');
    Route::get('viewLogin',                     'IndexController@viewLogin');
    Route::get('viewRegister',                  'IndexController@viewRegister');
    Route::post('login',                        'IndexController@index');
    Route::post('register',                     'IndexController@register');
});